package com.shujiaotong.pojo;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2024-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop")
@ApiModel(value="Shop对象", description="")
public class Shop implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "商品名称")
    @TableField("shop_name")
    private String shopName;

    @ApiModelProperty(value = "图片路径")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "商品原价")
    @TableField("old_price")
    private BigDecimal oldPrice;

    @ApiModelProperty(value = "商品现价")
    @TableField("new_price")
    private BigDecimal newPrice;

    @ApiModelProperty(value = "状态 0停售 1启售")
    @TableField("status")
    private Integer status;

    @ApiModelProperty(value = "库存数量")
    @TableField("inventory")
    private Integer inventory;

    @ApiModelProperty(value = "商品描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "分类id")
    @TableField("category_id")
    private Long categoryId;

    @TableField("sort")
    private Integer sort;

    @TableField(exist = false)
    private String categoryName;
}
